<template>
<div class="login">
    <h1>Login Page</h1>
    <input name="username" placeholder="username" type="text">
    <input name="password" placeholder="passowrd" type="password">
    <button @click="reg()">登陆</button>
    <div class="reg">
       没有账号?请先<a href="#">注册</a>!
    </div>
    
  </div>
</template>
<script>
export default {
    name: 'Login',
    methods: {
        reg(){
            this.$router.push("/home/newsList")
        }
    }
}
</script>
<style scoped>
    .login {
        display: -webkit-flex;
        flex-direction: column;
        margin: 5px;
    }
    h1{
       display: -webkit-flex;
       justify-content: center;
       margin: 50px 0;
    }
    input {
        width: 100%;
        height: 30px;
        border: 1px solid #42b983;
        border-radius: 5px;
        margin-bottom: 5px;
    }
    input::-ms-input-placeholder{
        text-align: center;
        font-size: 18px;
    } 
    input::-webkit-input-placeholder{
        text-align: center;
        font-size: 18px;
    }

    button {
        color: #FFF;
        background: #42b983;
        border: 1px solid #42b983;
        border-radius: 5px;
        width: 100%;
        height: 40px;
    }
    .reg {
       display: -webkit-flex;
       justify-content: flex-end;
    }
</style>
